if UMSReadMsgAll(account, args.num, msg., args.NoUpdate) then do
say "Message #" || args.num
do field = 0 to UMSNUMFIELDS
if symbol("msg." || field) = "VAR" then do
say "Field #" || field || ": '" || msg.field || "'"
end
end
if UMSReadMsgInfo(account, args.num, msg.) then do
say "HDRLEN:" msg.HDRLEN
say "TXTLEN:" msg.TXTLEN
say "DATE:" msg.DATE
say "UP:" msg.UP
say "DN:" msg.DN
say "LT:" msg.LT
say "RT:" msg.RT
say "GLOBALSTAT:" FlagToStat(msg.GLOBALSTAT,"Deleted","Expired","Exported","Orphan","Link","HardLink","Parked","HasFile")
say "USERSTAT:" FlagToStat(msg.USERSTAT,"0","1","2","3","Archive","Junk","PostPoned","Selected","Old","WriteAccess","ReadAccess","ViewAccess","Owner","13","14","Filtered")